package com.zk.ppa.controller;

import com.zk.ppa.commom.result.Result;
import com.zk.ppa.service.HealthService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenxiaolong
 * @since 2021年03月21日 11:14:00
 */
@RestController
@Slf4j
@Api(tags = "项目健康相关接口")
@RequestMapping("/health")
@CrossOrigin
public class HealthController {
    @Autowired
    private HealthService healthService;

    @GetMapping("/health")
    @ApiOperation(value = "项目健康接口", notes = "项目健康接口")
    public Result<String> health(){
        healthService.delete();
        return Result.SUCCESS().setData("health");
    }
}
